define(function(require, exports, module) {
    var ALL = require("../../common/all"),
        CONFIG = ALL.CONFIG,
        METHOD = ALL.METHOD,
        Dialog = ALL.Dialog,
        Init = ALL.Init;

    var _vm = Init.initVue({
        data : {
            col_id : '',
            no: '',
            plan_name : '',
            status : '',
            list : [],
            cur : 1,
            all : 0,
            search : false
        },
        methods: {
            reSearch : function() {
                this.search = true;
                this.getData(1);
            },
            reset : function() {
                this.search = false;
                this.plan_name = '';
                this.no = '';
                this.col_id = '';
                this.status = '';
            },
            getData : function(n) {
                var obj = {
                    page: n,
                    num: 10,
                    plan_name : _vm.plan_name,
                    no : _vm.no,
                    col_id : _vm.col_id,
                    status : _vm.status
                };

                METHOD.loading.show();
                METHOD.ajax("unlock/log/list",obj).done(function(json){
                    METHOD.loading.hide();
                    _vm.list = json.data;
                    _vm.all = json.page.pages;
                }).fail(function(){
                    METHOD.loading.hide();
                });
            }
        }
    });

    _vm.getData(1);

});

